ADP\BaseVersion\Includes\Core\RuleProcessor\PriceCalculator D

Total Complexity 161
Dependencies 21
Dependents 0
Total lines 876
Lines of code 594
Logical lines of code 337
Comment lines 141
Methods 21
Properties 3

Methods 21

Method Rating Maintainability Complexity Lines of code
applyItemDiscount()
C
32 24 110
makeSetItemDiscount()
B
36 18 84
applyItemDiscountAmount()
B
37 16 84
calculateAdjustmentsLeft()
B
44 17 44
calculatePriceForSetSplitDiscountByCost()
A
41 15 55
calculatePriceForItemsSplitDiscountByCost()
A
43 14 51
makePriceExpression()
A
47 14 32
evaluateExpression()
A
48 9 30
calculatePrice()
A
52 8 25
calculateSinglePrice()
S
53 7 23
checkDiscount()
S
62 4 12
checkAdjustmentTotal()
S
70 4 6
makePriceFixed()
S
69 2 7
makeDiscountPercentage()
S
69 2 6
makeFree()
S
82 1 3
__construct()
S
74 1 5
makeOverpriceAmount()
S
78 1 3
makeDiscountAmount()
S
78 1 3
makeOverpricePercentage()
S
77 1 3
calculatePriceForSet()
S
79 1 3
checkOverprice()
S
73 1 5